package com.sasis.model;
// Generated 2007-3-28 12:11:49 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="SERVER_PROTECT"
 *     
 */

public class ServerProtect extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
    private Integer requestId;
    private Integer protectType;
    private String protectContent;
    private Integer ifCheck;
    private Integer regMan;
    private String regManName;
    private Date regTime;
    private String deptName;
    private Integer vipFlag;
    private String approvContent;
    private Integer ifPass;
    private Integer approvMan;
    private Date approvTime;
    private String approvCHMan;
    // Constructors

    public String getApprovCHMan() {
		return approvCHMan;
	}


	public void setApprovCHMan(String approvCHMan) {
		this.approvCHMan = approvCHMan;
	}


	public Integer getIfPass() {
		return ifPass;
	}


	public void setIfPass(Integer ifPass) {
		this.ifPass = ifPass;
	}


	public String getApprovContent() {
		return approvContent;
	}


	public void setApprovContent(String approvContent) {
		this.approvContent = approvContent;
	}


	public Integer getVipFlag() {
		return vipFlag;
	}


	public void setVipFlag(Integer vipFlag) {
		this.vipFlag = vipFlag;
	}


	public String getDeptName() {
		return deptName;
	}


	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}


	/** default constructor */
    public ServerProtect() {
    }

    
    /** full constructor */
    public ServerProtect(Integer requestId, Integer protectType, String protectContent, Integer ifCheck, Date regTime) {
        this.requestId = requestId;
        this.protectType = protectType;
        this.protectContent = protectContent;
        this.ifCheck = ifCheck;
        this.regTime = regTime;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="REQUEST_ID"
     *             length="26"
     *         
     */

    public Integer getRequestId() {
        return this.requestId;
    }
    
    public void setRequestId(Integer requestId) {
        this.requestId = requestId;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROTECT_TYPE"
     *             length="22"
     *         
     */

    public Integer getProtectType() {
        return this.protectType;
    }
    
    public void setProtectType(Integer protectType) {
        this.protectType = protectType;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROTECT_CONTENT"
     *             length="300"
     *         
     */

    public String getProtectContent() {
        return this.protectContent;
    }
    
    public void setProtectContent(String protectContent) {
        this.protectContent = protectContent;
    }
    /**       
     *      *            @hibernate.property
     *             column="IF_CHECK"
     *             length="22"
     *         
     */

    public Integer getIfCheck() {
        return this.ifCheck;
    }
    
    public void setIfCheck(Integer ifCheck) {
        this.ifCheck = ifCheck;
    }
    /**       
     *      *            @hibernate.property
     *             column="REG_TIME"
     *             length="7"
     *         
     */

    public Date getRegTime() {
        return this.regTime;
    }
    
    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("requestId").append("='").append(getRequestId()).append("' ");			
      buffer.append("protectType").append("='").append(getProtectType()).append("' ");			
      buffer.append("protectContent").append("='").append(getProtectContent()).append("' ");			
      buffer.append("ifCheck").append("='").append(getIfCheck()).append("' ");			
      buffer.append("regTime").append("='").append(getRegTime()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof ServerProtect) ) return false;
		 ServerProtect castOther = ( ServerProtect ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getRequestId()==castOther.getRequestId()) || ( this.getRequestId()!=null && castOther.getRequestId()!=null && this.getRequestId().equals(castOther.getRequestId()) ) )
 && ( (this.getProtectType()==castOther.getProtectType()) || ( this.getProtectType()!=null && castOther.getProtectType()!=null && this.getProtectType().equals(castOther.getProtectType()) ) )
 && ( (this.getProtectContent()==castOther.getProtectContent()) || ( this.getProtectContent()!=null && castOther.getProtectContent()!=null && this.getProtectContent().equals(castOther.getProtectContent()) ) )
 && ( (this.getIfCheck()==castOther.getIfCheck()) || ( this.getIfCheck()!=null && castOther.getIfCheck()!=null && this.getIfCheck().equals(castOther.getIfCheck()) ) )
 && ( (this.getRegTime()==castOther.getRegTime()) || ( this.getRegTime()!=null && castOther.getRegTime()!=null && this.getRegTime().equals(castOther.getRegTime()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getRequestId() == null ? 0 : this.getRequestId().hashCode() );
         result = 37 * result + ( getProtectType() == null ? 0 : this.getProtectType().hashCode() );
         result = 37 * result + ( getProtectContent() == null ? 0 : this.getProtectContent().hashCode() );
         result = 37 * result + ( getIfCheck() == null ? 0 : this.getIfCheck().hashCode() );
         result = 37 * result + ( getRegTime() == null ? 0 : this.getRegTime().hashCode() );
         return result;
   }


public Integer getRegMan() {
	return regMan;
}


public void setRegMan(Integer regMan) {
	this.regMan = regMan;
}


public String getRegManName() {
	return regManName;
}


public void setRegManName(String regManName) {
	this.regManName = regManName;
}


public Integer getApprovMan() {
	return approvMan;
}


public void setApprovMan(Integer approvMan) {
	this.approvMan = approvMan;
}


public Date getApprovTime() {
	return approvTime;
}


public void setApprovTime(Date approvTime) {
	this.approvTime = approvTime;
}   





}
